package com.cloud.music.dto.netease;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Login {

    /**
     * 163 网易邮箱
     */
    @NotBlank(message = "邮箱不能为空")
    @Email(message = "邮箱格式错误")
    private String email;

    /**
     * 密码
     */
    private String password;

    /**
     * md5 加密后的密码,传入后 password 将失效
     */
    private String md5_password;
}
